﻿namespace OasisCiq.Xpil
{
    using System;
    using System.Linq;

    /// <summary>
    /// List of category the oranisation belongs to
    /// </summary>
    public class OrganisationCategoryTypeList : XS.XSNormalizedString
    {
        private static readonly string[] PossibleValues = new[]
        {
            "Vendor",
            "GovernmentAgency",
            "University",
            "College",
            "School",
            "Club",
            "Association",
            "Consortium",
            "Company"
        };

        public OrganisationCategoryTypeList(string value)
            : base(value)
        {
            if (!PossibleValues.Contains(value))
            {
                throw new ArgumentOutOfRangeException();
            }
        }
    }
}